package com.yb.domain.goods;

import java.util.Date;

import com.yb.base.annotation.Table;
import com.yb.base.entity.BaseEntity;
import com.yb.util.comm.DateTimeUtil;

@Table("t_g_product")
public class TgProduct extends BaseEntity {
	private String title;
	private String imgsrc;
	private String content;
	private Long brandId;
	private Date createTime;

	public Date getCreateTime() {
		return createTime;
	}
	
	public String getCreateTimeString() {
		if(null != createTime){
			return DateTimeUtil.getDateToString(createTime, "yyyy-MM-dd kk:mm:ss");
		}
		return "";
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getBrandId() {
		return brandId;
	}

	public void setBrandId(Long brandId) {
		this.brandId = brandId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImgsrc() {
		return imgsrc;
	}

	public void setImgsrc(String imgsrc) {
		this.imgsrc = imgsrc;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
